package com.example.examsystem2.util;


import java.text.SimpleDateFormat;
import java.util.Date;


public class TimeUtils {
    public static String getTime() {
        Date sysdate = new Date();
        String dateFormat="yyyy-MM-dd HH:mm:ss";
        //自定义日期格式对象
        SimpleDateFormat sdf = new SimpleDateFormat(dateFormat);
        return sdf.format(sysdate);
    }
}
